package com.ruoyi.back.service

import com.baomidou.mybatisplus.extension.service.IService
import com.ruoyi.back.domain.UserCollect

interface UserCollectService : IService<UserCollect> {

    /**
     * 当前用户是否点赞
     */
    fun isLike(userId: Long, templateId: Long): Boolean

    /**
     * 模板点赞收藏次数
     */
    fun templateCount(templateId: Long): Pair<Int, Int>

    /**
     * 当前用户是否收藏
     */
    fun isCollect(userId: Long, templateId: Long): Boolean
}